//
//  DouyaIndicator.h
//  指示器
//
//  Created by douya on 15/1/14.
//  Copyright (c) 2015年 douya. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface DouyaIndicator : UIView
{
    UIImageView *_imageView;
    UILabel *_infoLabel;
}
@property (nonatomic,assign)NSString *loadText;
@property(nonatomic,readonly)BOOL isAnimating;

-(id)initWithFrame:(CGRect)frame;
//设置初始标题
-(void)setLoadText:(NSString *)text;

//开始动画
-(void)beginAnimation;
//停止动画 成功加载OR失败加载
-(void)stopAnimationWithLoadText:(NSString *)text withType:(BOOL)type;

@end
